/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.yunhoo.deptBudget.model;

import com.yunhoo.sys.util.common.LoginParam;

/**
 *
 * @author Administrator
 */
public class OrgAndYear {

    private String orgCode;//单位
    private String orgName;
    private Integer iyear;//年度

    public OrgAndYear() {
    }

    public OrgAndYear(boolean initWithLoginInfo) {
        if (initWithLoginInfo) {
            this.orgCode = LoginParam.getOrg().getCode();
            this.orgName = LoginParam.getOrg().getName();
            this.iyear = LoginParam.getIyear();
        }
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public Integer getIyear() {
        return iyear;
    }

    public void setIyear(Integer iyear) {
        this.iyear = iyear;
    }
}
